It's been a minute...
One of the lessons I have learned in my years of programming is that if you get stuck on a coding error, it's likely because of one of two things: a really dumb syntax issue; or you are not following better/best practice, i.e. square peg, round