def _get_attr_as_list(attr, attribute):
    """Helper method to always get an attribute as a list."""
    value = getattr(attr, attribute)
    if not value:
        return []
    if type(value) == type([]):
        return value
    return [value]