Function to return a nested attribute of an object
Try to find an attribute if handle doesn't exist