Working fix for the camelizeObject function.
Makes sure it's not empty, but still return init class.