Move to a method and use #reject to drop the blanks