The value of a variable is {}
i am trying to check if its empty or not using if statement.
I have tried the following
if(val) {