Add paren to maybeEnd check.