Check that the prefix exists before using it