check && and || as convention