Safer argument checks