updated get posts calls to return empty list instead of null