def otherwise(first, second)
      first = first.to_s
      first.empty? ? second : first
    end
def otherwise(first, second)
      first = first.to_s
      first.empty? ? second : first
    end
Returns the first argument if it's not nil or empty otherwise it returns
 the second one.

   {{ post.author | otherwise:site.author }}