Ciao.
C'è scritto


If var is not an array or an object with implemented Countable interface, 1 will be returned. There is one exception, if var is NULL, 0 will be returned.
ma PP non si può stare + tranquilli
neanche con il classico
count($result) > 0


Codice PHP:
var_dump(count(false)) 
indovinate cosa restituisce