using if and a boolean function in bash script: if condition evalutes to false when function returns true
using if and a boolean function in bash script: if condition evaluates to false when function returns true