[minor] helper function to check for presence of pagelet