Should this just be ```is_file($file)``` ?