has_post_thumbnail

Determines whether a post has an image attached.