Adding optional class parameter to has() and hasNot() criteria and nodes