mail: check for empty env