if !obj.nil?
When writing code that needs to handle nilable objects the resulting code can be sometimes verbose...
Tags: crystal, todayilearned, ruby, javascript