Check if detect is true