replaces if/else block with guard clauses
	* uses exit codes within functions to return early