AIViewController - fix case convention, use ternary operator

- Use camel case, not underscores.
- Prefer ternary operator to if/else.