Working with short circuit, conditional return values and case statement value