Changed if ! to unless