Nonetype in Array