Check if background is None not if is True

Apparently, A == True checks each component of A if it is a NumPy array ...