modify default HAVE_POSTS() Loop without inserting new variable (i.e. $loop->HAVE_POSTS)

modify default HAVE_POSTS() Loop without inserting new variable (i.e. $loop->HAVE_POSTS)