Use built-in method hasVariParams
Wrap bind attempt in try-catch block