Is there a way to check for an attribute of a script when using script_loader_tag?

Is there a way to check for an attribute of a script when using script_loader_tag?