public function assess($value) { $options = $this->getOptions(); if ($options['strict']) { return is_int($value); } else { return ctype_digit(ltrim((string) $value, '-')); } }