original_string: private function nullIfEmptyArray($key, $value)
      {
          if ($this->isJsonCastable($key) && ! empty($value)) {
              return $this->setJsonCastValue($value);
          }
  
          return empty($value) ? null : $value;
      }
code: private function nullIfEmptyArray($key, $value)
      {
          if ($this->isJsonCastable($key) && ! empty($value)) {
              return $this->setJsonCastValue($value);
          }
  
          return empty($value) ? null : $value;
      }
code_tokens: private function nullIfEmptyArray ( $ key , $ value ) { if ( $ this -> isJsonCastable ( $ key ) && ! empty ( $ value ) ) { return $ this -> setJsonCastValue ( $ value ) ; } return empty ( $ value ) ? null : $ value ; }
docstring: Determine whether an array value is empty, taking into account casting.
  
  @param  string  $key
  @param  array  $value
  
  @return mixed
docstring_tokens: Determine whether an array value is empty taking into account casting .