Possible Duplicate:
Is !$page == false or $page in php?
What is the difference between these two types of checks? And which would be the correct way of type checking called functions or methods that fail and return false?
if (!is_dir($path)) {...}
or
if (is_dir($path) === false) {...}