Given an array containing only integers, add all the elements and return the binary equivalent of that sum.

If the array contains any non-integer element (e.g. an object, a float, a string and so on), return false.

**Note:** The sum of an empty array is zero.

```python
arr2bin([1,2]) == '11'
arr2bin([1,2,'a']) == False
```

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def arr2bin(arr):
	

Solutions:
def arr2bin(arr):
	for x in arr:
		if type(x) != int:
			return False
	return '{0:b}'.format(sum(arr))


def arr2bin(arr):
	return all((type(n) == int for n in arr)) and format(sum(arr), 'b')


def arr2bin(arr):
	s = 0
	for x in arr:
		if type(x) is int:
			s += x
		else:
			return False
	return '{:b}'.format(s)


def arr2bin(arr):
	if all(map(lambda x: type(x) == int, arr)):
		return '{0:b}'.format(sum(arr))
	return False


def arr2bin(arr):
	if any((type(a) is not int for a in arr)):
		return False
	return bin(sum(arr))[2:]


def arr2bin(arr):
	return False if any((type(e) != int for e in arr)) else bin(sum(arr))[2:]


def arr2bin(arr):
	if any((type(x) != int for x in arr)):
		return False
	return bin(sum(arr))[2:]


def arr2bin(arr):
	return all((isinstance(n, int) and (not isinstance(n, bool)) for n in arr)) and bin(sum((n for n in arr)))[2:]


def arr2bin(arr):
	if all((type(x) is int for x in arr)):
		return '{:b}'.format(sum(arr))
	else:
		return False


def arr2bin(arr):
	try:
		return bin(sum((int(x) if not isinstance(x, bool) else None for x in arr)))[2:]
	except:
		return False