Using ``++count()++`` to test for emptiness works, but using ``++empty()++`` makes the code more readable and can be more performant

== Noncompliant Code Example

----
if (count($a) > 0) { // Noncompliant
 echo $a[0];
}
----

== Compliant Solution

----
if (!empty($a)) {
  echo $a[0];
}
----

ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)

include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]
