nitpick: $posterid is an int here not a string, so I'd strongly prefer "$posterid == 0". What you have works, but it's much clearer re: expectations this way!