Fixed model to check if componentStore is defined