Filter out stop words and return as a list of words

def filter_stopwords(phrase):
    """Filter out stop words and return as a list of words"""
    if not isinstance(phrase, list):
        phrase = phrase.split()

    stopwords = ['the', 'a', 'in', 'to']
    return [word.lower() for word in phrase if word.lower() not in stopwords]