Use reflection to detect if method exists