In reference to Check if no result found in mysql db
It was previously thought that you could check to see if there as a record set returned by doing the following;
It doesn't look like you got zero results - it looks like your query failed (and therefore didn't return a mysqli_result).
EDIT: To answer your question more specifically, yes it is as simple as
if($result)