Allow passing a single object instead of an array