A bunch of null checks for wifi crashy crashy