Separated model functions to return either NSArray or NSDictionary.