Try compatibility, removed inline condition
Added PHP version check