IMO simple:
```php
if ('A' === $c[2] || 'B' === $c[2]) {
```
is more cleaner...