Utility functions for feature detection.