sizeOf

fun Collection<*>?.sizeOf(): Int

Gives the size of the collection by doing a null check first

Return

0 if the collection is null or empty otherwise the size of the collection