/** * return true if order already have a crypt * * @param SceauXMLElement $order * @return boolean */ public function findCrypt(SceauXMLElement $order) { $cryptelement = $order->getChildrenByName('crypt'); return count($cryptelement) > 0; }