Use "is" instead "==" for bool condition check