guard against nil pointers in get