moved contacts null check to correct place