add operationExists method on script side

Change-Id: Ic49a629931b09f104a644dfa7acb5f57b6185f01
Reviewed-by: Niels Weber <niels.weber@digia.com>