Modify to return empty array if consul kv parameters are nil.