You should probably add || [] to the end of this line, so that if the settings has no defined value you give it a non-null value.