code: def free_if_register(self, index):
          
          if (index < 0) or (index > SharedData.FUNCTION_REGISTER):
              return
          else:
              self.free_register(index)
docs: If index is a working register, free it, otherwise just return (helper function)