Fix array_of method not to return nil