fixing an issue when a yml file is empty and therefore contains no data