Checks if an error is defined for an attribute.
Example:
$e = new Errors();
$e['username'] = 'Funny username';
var_dump(isset($e['username']);
var_dump(isset($e['password']);
Returns
boolean
true if an error is defined for the specified attribute, false otherwise.
Implementation of
ArrayAccess::offsetExists()