'Determine whether the genre is present in the whitelist,
returning a boolean.'

def _is_allowed(self, genre):

    if (genre is None):
        return False
    if ((not self.whitelist) or (genre in self.whitelist)):
        return True
    return False
