Fix array_pop

Code:
```php
$var = ['AAAAA'];
array_pop($var);
```

Error:
```
java.lang.ArrayIndexOutOfBoundsException: -1
```