code: public function equals($value)
      {
          if ($this === $value) {
              return true;
          }
  
          if ($this->realValue === null && $value !== null) {
              return false;
          }
  
          if ($this->realValue instanceof Equatable && $value instanceof Equatable) {
              return $this->realValue->isEqualTo($value);
          }
  
          /** @noinspection UnnecessaryCastingInspection */
          return is_scalar($value) && (string) $this->formValue === (string) $value;
      }
docs: @param $value
  
  @return bool