I think these checks should really be using the constants defined in https://github.com/neo4j/neo4j/blob/master/community/kernel/src/main/java/org/neo4j/kernel/api/StatementConstants.java even though they are extremely unlikely to ever change.