Move span check under child null break