Simplify code a little

* Replace `find(...).isDefined` with `exists(...)`
* Remove redundant curly braces
* Remove application of `==` to Boolean expression