...and reproduced. mothereffer.
Finally got this working via function keyword
Alright, successful is_on_git complete