Fixed bug to ensure that array_fill only occurs with a positive number of objects to fill