Check if Post Type inside or outside of loop