improved option's existence-check by replacing 'isset' with 'array_key_exists', fixed typo in exception message