Remove isset checking as we have set POST value in check_posts function