protected function isString($value) { if (!is_string($value)) { throw new InvalidArgumentException('The value Passed is not a string'); } return true; }