Whether it looks right or not, there's nothing syntatically invalid with that code. There's no reason that code shouldn't work.