private static function findLabelByValue(FormElement $input) { if ($input->getType() === 'submit' && $input->hasAttribute('value') && $input->getAttribute('value')) { return $input->getAttribute('value'); } return false; }