Added missing checks for varargs