Fixed bug that was causing a None return instead of empty list