`modules = Y.Array(modules);`

there is not need to throw.