def data_in_db(db_data, user_data):
        """Validate db data in user data.

        Args:
            db_data (str): The data store in Redis.
            user_data (list): The user provided data.

        Returns:
            bool: True if the data passed validation.
        """
        if isinstance(user_data, list):
            if db_data in user_data:
                return True
        return False
Validate db data in user data.

        Args:
            db_data (str): The data store in Redis.
            user_data (list): The user provided data.

        Returns:
            bool: True if the data passed validation.