IS_REGULAR

true if the file is a regular file (not a directory). Note that this test will also return true if the tested file is a symlink to a regular file.