Solved problem with conditional exporting to XLSX (with params checking)