def is_published_or_draft(post):
    """returns True/False based on `published` metadata in post"""
    if post is not None and ('published' in post.meta and post.meta[
        'published'] is True or 'status' in post.meta and post.meta[
        'status'].lower() == 'draft'):
        return post
