Uses new array_key_true() method. Fixes #849