inst: improve checks in pre