added compatibility with isFlag() methods