src/main/java/tech/becoming/common/exceptions/NotFoundException.java
public static Boolean throwIfFalse(Boolean b) {
        if(b) {
            return true;
        }

        throw new NotFoundException();
    }
/**
     * Can be used in conjuncture with Vavr and Spring Data's <b>exist</b> or <b>existById</b>
     * @param b boolean that needs to be checked in <b>exists</b> cases
     * @return true or throw a NotFoundException
     */
Can be used in conjuncture with Vavr and Spring Data's exist or existById
@param b boolean that needs to be checked in exists cases
@return true or throw a NotFoundException
Can be used in conjuncture with Vavr and Spring Data ' s exist or existById @param b boolean that needs to be checked in exists cases @return true or throw a NotFoundException
public static Boolean throwIfFalse(Boolean b) {
        if(b) {
            return true;
        }
        throw new NotFoundException();
    }
public static Boolean throwIfFalse ( Boolean b ) { if ( b ) { return true ; } throw new NotFoundException ( ) ; }
Can be used in conjuncture with Vavr and Spring Data's <b>exist</b> or <b>existById</b>
 @param b boolean that needs to be checked in <b>exists</b> cases
 @return true or throw a NotFoundException
Can be used in conjuncture with Vavr and Spring Data ' s <b > exist< / b > or <b > existById< / b > @param b boolean that needs to be checked in <b > exists< / b > cases @return true or throw a NotFoundException