Bugfix array_key_exists() expects $options to be array

Fix #51