title: check if a csv file is null or not in spark scala
body: <p>I want to check if .csv is <code>null</code> or not. If not <code>null</code> and contains record then process the file otherwise exit. Is there a way to check in Spark Scala code if file is empty or not?</p>