Check if pins exists and support the right mode