module Devise::Controllers::Helpers

def anybody_signed_in?

authentication hooks.
Check if the any scope is signed in session, without running
def anybody_signed_in?
  Devise.mappings.keys.any? { |scope| signed_in?(scope) }
end