Catches incorrect YAML