bool is_dir
Returns true if the filename exists and is a directory.
See also is_file() and is_link().