If else statement for showing posts or no posts yet