protected function bindValues($stmt, array $binds) { // Bind each value to the given prepared statement foreach ($binds as $field => $value) { $stmt->bindValue($field, $value); } return true; }