public function test()
{
    foreach () {
        if () {
            foreach () {
                if () {
                    # code
                }
            }
            if () {
                # code
            }
            $this->a = ...;
            return true;
        }
    }
    return false;
}