Corrected check for available media