shouldn't it test `isset($contactData['name'])`?