isPassPolicy is not a function