Added else and console.log

Added else and console.log