Method to check for valid component