def check_page_availability!(type)
      return unless @attributes[type.to_sym].nil?

      raise(
        type.eql?(:next) ?
          UserEngage::NoNextPageAvailableException :
          UserEngage::NoPreviousPageAvailableException,
        "No #{type} page available"
      )
    end
def check_page_availability!(type)
      return unless @attributes[type.to_sym].nil?

      raise(
        type.eql?(:next) ?
          UserEngage::NoNextPageAvailableException :
          UserEngage::NoPreviousPageAvailableException,
        "No #{type} page available"
      )
    end
Private: Checks the given type of page availability.
 If not present, it raises an UserEngage::NoNextPageAvailable
 or NoPreviousPageAvailable