replaced silence operator by is_file() check