public function __call($method, $args)
{
if ($this->hasMacro($method)) {
return $this->runMacro($method, $args);
} elseif (preg_match('/^isValid/', $method)) {
preg_match('/For(.*?)$/', $method, $matches);
if (count($matches) > 1) {
return $this->isValid(strtolower($matches[1]), current($args));
}
}
}