suppress error on getting key of non object