Avoid using the deprecated canFind function.