Returning array in scaffold generator