Check if $post is null.