making sure we got data before outputting empty yaml!