Modified in_check? method