added another test and implementation for false if condition