simpler test for existing prefix