public function find($selector, $nth = null)
{
$selector = new Selector($selector);
$nodes = $selector->find($this);
if (!is_null($nth)) {
// return nth-element or array
if (isset($nodes[$nth])) {
return $nodes[$nth];
}
return null;
}
return $nodes;
}