handle when null returned from db