helper function now determines if passed object has keys within it, still trying to figure out how to automatically iterate through subkeys