correctly return a value instead of executing true/false