Refactor checkActive

Refactor checkActive to work without the param iProductId. New function
is called isActive