Iaco 468 origin proof

Is there a way to put this "key exists validation" in a helper class?