Could also have just checked that data was not null? #nitpick