public function getFirstMatchingField ($selector)
    {
        $fields = $this->getFields($selector);
        if (empty($fields)) {
            return null;
        } else {
            return reset($fields);
        }
    }