Add array, null and undefined case.