Check for value only once in function 'choose'