I'am going to write an IF conditional like this:

```
if (isset($_GET['code']) && !empty($_GET['code']) && ctype_digit($_GET['code'])){
   //other code here
}

```

I mean, of course if I only check:

```
if(ctype_digit($_GET['code'])){ }

```

of course $\_GET['code'] exists and it is not empty, isn't it wasteful writing this conditional the first way?