remove old style constructor to fix strict warnings
properly check if the post is set in the array