in parseCondition i get the warning not all control paths return a value