[5.0] Adding array_whitelist() and array_blacklist() functions

check if a value is whitelisted or blacklisted
useful for double checking url parameters like filters & sorts

Example: 
```php

/* Controller index */
public function index($sortBy = 'name')
{
    $sortBy = array_whitelist($sortBy, ['name', 'age', 'rank'], 'name');

    // ...
}

```
Ah thanks, wasn't using my usual sublime config and it was replacing spaces with tabs on save. 
Fixed now and type hints added. Should I submit a new PR or can this one be re-opened?