class Guard::Internals::Scope

def _find_non_empty_scope(type, local_scope)

def _find_non_empty_scope(type, local_scope)
  [Array(local_scope[type]), to_hash[type]].map(&:compact).detect(&:any?)
end