Added jii.hasChain() method