Added else conditional with console.log