Add check for extensions macro