!$head -> $head !== FALSE (if it is a boolean FALSE in the error case)