add function which checks if an execute permission is granted