HomePhabricator

Avoid count()ing where not necessary

Authored by thiemowmde on Oct 19 2018, 8:04 AM.

Description

Avoid count()ing where not necessary

If all the code needs to know is if an array is empty or not, using
count() creates more confusion than anything.

Change-Id: I253308505fe5af5b5c56d85169789271967298ba
(cherry picked from commit 8c51f5bd4531ec6b109b27b662afebba019e3321)
(cherry picked from commit 335389f7504459bb43edd3dc4df28af8d01f1452)