Moved has_content function to posts.utils file