has_proto() protected method

Are we in the middle of generating a prototype element for repeatable fields?
protected has_proto ( ) : boolean
return boolean
 /**
  * Are we in the middle of generating a prototype element for repeatable fields?
  * @return boolean
  */
 protected function has_proto()
 {
     if ($this->is_proto) {
         return True;
     }
     if ($this->parent) {
         return $this->parent->has_proto();
     }
     return False;
 }