There is no need to check array here. The developer is responsible to make sure the type is proper. By doing so, it would mean we should do similar for nearly everywhere, which is simply too much for the framework.