I have this code:
$myVariable = someRanDomFunction($blah)
The problem is that someRanDomFunction() might return an array, an object, an empty array, boolean value or NULL.
What if the best way to check that $myVariable has some data?
right now i'm doing this:
!empty($myVariable )
Will it cover all cases?
or maybe i should do ($myVariable != NULL && !empty($myVariable ))?
UPDATE*
By 'some data' i mean TRUE if its bool, not empty array, and any value other than NULL
is_arrayetc. manually, one after the other until you got it right?