Check if it work before script execution