function isMethod($varname, &$expr)
{
if (is_array($varname)) {
$tmp = $varname;
$method = array_pop($tmp);
$object = $this->get_context($tmp);
if (!empty($method['object']) && is_string($method['object'])) {
$property = $method['object'];
if (is_object($object) && !isset($object->{$property}) && is_callable(array($object, $property))) {
$expr = hexec($varname);
return TRUE;
}
}
}
return FALSE;
}