added "To" field absence check