Changed checking for a valid export option