A utility to allow for safe accessing of nested properties