Minor fix for to detect `find` method

Fixes #4583