Implement __len__ on arrays and use to implement bool(array)
Remove unused code