set the student to null, rather than leave it to be undefined when students is empty.
null
undefined
students