Fixed `Locator` class

Replaced `is_file` to `file_exists` functions