if table has only one record then do not redirect

if the whole table has only one record then do not redirect as for new projects with one record it does not allow to create entities