if condition is null then return all