Extract existence check to a method