Added coondition to check if a source has cards