If `#get_user_activity` returns an empty array instead of false or nil, you can eliminate the if/else entirely, since calling `#map` on an empty array will return an empty array.