public static function keyIsset($value, $key, $message = null, $propertyPath = null)
{
static::isArrayAccessible($value, $message, $propertyPath);
if (!isset($value[$key])) {
$message = sprintf($message ?: 'The element with key "%s" was not found', static::stringify($key));
throw static::createException($value, $message, static::INVALID_KEY_ISSET, $propertyPath, array('key' => $key));
}
return true;
}