if (!$locoObjectA instanceof Locomotive) {
            throw new Exception("Cannot establish link between locomotives - Paramter 1 (Loco A) missing");
        }