/**
  * Reads a Yaml file and process the keys and returns as a associative indexed array
  *
  * @param string $file
  *
  * @return array
  */
 protected function getYamlAsArray($file)
 {
     if (file_exists($file)) {
         return ArrayTools::YamlToKeyedArray(file_get_contents($file));
     }
     return array();
 }