Made it compatible with apc 3.0.0

This is a BC fix for APC < 3.1.4 (apc_exists was introduced in that version). A similar and smaller fix might be 
```php
return (bool)apc_fetch($key);
```
But here there's a chance of a misbehaviour in case of you store a boolean inside APC.