Sure that this is correct? Because $this->home from the internal if statement gets overwritten by this line.