if you use references need to check if $config['ntpd'] is set or is an array.
Maybe it has been done in the upper code though needs to be verified.