private function tryToInsert($element, $priority, &$data, $datum)
    {
        $inserted = false;
        if ($datum['priority'] > $priority) {
            $data[] = ['element' => $element, 'priority' => $priority];
            $inserted = true;
        }
        return $inserted;
    }