Added console.log to print out to console.
Added if statement with comments.