def ifexists(total_pages, page_no):
    """
    This function checks whether the given page number is in the specified range
    of total pages.

    :param total_pages:
    :param page_no:
    :return: True or False
    """
    if page_no <= total_pages:
        return False
    return True