Fixed console log debug to match string true instead of just checking for any value set.