def check_not_empty?(yaml_data, errors_array)
      if yaml_data.empty?
        errors_array << 'The YAML should not be an empty string'
        false
      elsif yaml_data.strip.empty?
        errors_array << 'The YAML should not just be spaces'
        false
      else
        true
      end
    end
def check_not_empty?(yaml_data, errors_array)
      if yaml_data.empty?
        errors_array << 'The YAML should not be an empty string'
        false
      elsif yaml_data.strip.empty?
        errors_array << 'The YAML should not just be spaces'
        false
      else
        true
      end
    end
Check that the data is not empty