module ActiveSupport::Tryable

def try(*a, &b)

:nodoc:
def try(*a, &b)
  try!(*a, &b) if a.empty? || respond_to?(a.first)
end