how can i make this return true if and only if the concrete type of array is an Array of the concrete type of element?
isElementType(element: 1 as Int, array: [] as [Int]) == true
isElementType(element: 1 as Float, array: [] as [Float]) == true
isElementType(element: [] as [Float], array: [] as [[Float]]) == true