Double check of console existence -> if(console && console ...