replaces if/else block with guard clauses
    * uses exit codes within functions to return early
    * if using [[]] syntax, use '=', not '=='