Index attribute only if specified dependencies are met