Fixed check to check whether alpha is Iterable, rather than length (since len() can't take floats).