fixes issue #125 by using array_key_exists instead of isset

If there is a better suggested fix let me know and I can code it.