Fix #344 - Wrong required command option validation.

Replace array_key_exists() with !empty().