If the variable is already empty, you should also use NULL. (show at the...

... var $posts)