Include the method is_directory()
Include the method is_instance_of()