Null check for received data