By the substance of the work, not the contract. Czech law calls work dependent when it is done under an employer’s direction, in its name, personally, for pay and at its cost and risk, and it may be done only under an employment contract or a work agreement. If the job looks like that, hire the person as an employee. A contractor who fits it is in disguised employment (švarcsystém), which counts as illegal work.