Changed negative if conditions to unless'

Changed negative if conditions to unless' for improved readability.