Correct bad array logic test for teacher query string parse