Language: PHP
Label: vulnerable
CWE: CWE-502 \u2014 Deserialization of Untrusted Data
The product deserializes untrusted data without sufficiently verifying that the resulting data will be valid.

Code:
   public function checkIfSupplierInfosExists($plugin_order_orders_id) {

      if ($plugin_order_orders_id) {
         $devices = getAllDataFromTable(self::getTable(),
                                         ['plugin_order_orders_id' => $plugin_order_orders_id]);
         if (!empty($devices)) {
            return true;
         } else {
            return false;
         }
      }
   }