default to an empty object when properties is null