Just an opinion: Maybe the name of this method is not good, seems that the method does not really checks if it's a YAML file (has .yml extension), but check that the file starts with  ```"---"```, that is the YAML header, I suggest call it ```has_yaml_header?```