A small set of utility functions for working with objects