module Sinatra::ConfigFile

def environment_keys?(hash)

+environments+ in its root keys.
Returns true if supplied with a hash that has any recognized
def environment_keys?(hash)
  hash.is_a?(Hash) && hash.any? { |k, _| environments.include?(k.to_s) }
end