handle empty yaml files gracefully