I often see code like this:
// Approach 1 if(data != nil){ // Do this and that }
When one could simply do the check like this:
It is all about coding preferences. Some might feel that the longer form is more clear as to intent, others that it is overly verbose.