Check that $post is set.