Move the check before using param?