Improved find() method to find all posts or a single one