Doesnt break with null elements