def dataAvailable (date, databaseList, dataAvailability):
    """Checks that there is some data available for the queried date.

    .. warning:
        Assumes date has been validated using dateValidation.

    :param date: The queried date
    :type date: list[str, str, str]
    :param databaseList: List of months/years for which data is available
    :type databaseList: list[tuple]
    :param list dataAvailability: Determines range of dates available for
        month/year in question
    :return: date, if valid
    :rtype: list[str, str, str] or None
    """
    if date is not None:
        monthToCheck = date[0], date[2]
        availability = 1 <= int(date[1]) <= len(dataAvailability)
        if monthToCheck in databaseList and availability:
            return date