Checking ['contentId'] to avoid PHP notice