slightly changes behavior to return an empty array if no posts are found