Add type hinting and ensure performValidation $model is typed as Model