original_string: public function isEmptyAllowed($field, $newRecord)
      {
          $providers = $this->_providers;
          $data = [];
          $context = compact('data', 'newRecord', 'field', 'providers');
  
          return $this->_canBeEmpty($this->field($field), $context);
      }
code: public function isEmptyAllowed($field, $newRecord)
      {
          $providers = $this->_providers;
          $data = [];
          $context = compact('data', 'newRecord', 'field', 'providers');
  
          return $this->_canBeEmpty($this->field($field), $context);
      }
code_tokens: public function isEmptyAllowed ( $ field , $ newRecord ) { $ providers = $ this -> _providers ; $ data = [ ] ; $ context = compact ( 'data' , 'newRecord' , 'field' , 'providers' ) ; return $ this -> _canBeEmpty ( $ this -> field ( $ field ) , $ context ) ; }
docstring: Returns whether or not a field can be left empty for a new or already existing
  record.
  
  @param string $field Field name.
  @param bool $newRecord whether the data to be validated is new or to be updated.
  @return bool
docstring_tokens: Returns whether or not a field can be left empty for a new or already existing record .