Do we need to care of pushing undefined or null paths? The filtering already handles them.