Checks whether the item has the given item flag.
true if the item has the flag, false otherwise
the flag