Check if bean id is set