Replace -o logical operator with double pipe
This will ensure the right-hand test is discarded if the left
is evaluated as true. For more details see :-

http://rgeissert.blogspot.co.uk/2013/02/a-bashism-week-short-circuiting-tests.html
Remove the superfluous spaces before colons
in if [ "$foo" ] ; then statements.