- if ($a->argc > 1) {
- // If it's a json request abort here because we don't
- // need the widget data
- if ($a->argv[1] === 'json') {
- return;
- }
+ // If it's a json request abort here because we don't
+ // need the widget data
+ if ($a->argc > 1 && $a->argv[1] === 'json') {
+ return;
+ }