added checkTrue() method