Introduction
Predicate methods help you check if something is true or false in a simple way. They make your code easier to read and understand.
When you want to check if a number is even or odd.
When you want to see if a string is empty.
When you want to find out if an object is nil (nothing).
When you want to check if a file exists.
When you want to test if a condition is true or false before doing something.