we need to compare to 'true' because we might get null on the left side which cannot be resolved to boolean