doctrine/DoctrineORMModule — pull request #247 by mjhca (2013-07-01 06:40:13+00:00)
Title: Null empty_option should result in no empty option being included, not a "NULL" select list option

**Expected behavior:** According to ZF2 docs, setting empty_option to NULL instructs a \Zend\Form\Element\Select that it should *not* add an "empty option" to a select list.

**Current behavior:** DoctrineORMModule's ElementAnnotationListener ignores a NULL value and includes an empty option (with display string "NULL") in all select lists generated from annotations. This is because of the use of isset() which causes an intentionally set NULL value to be overwritten.

**Solution:** Replace isset() with array_key_exists().